const key = 'aaa'
const jwt = require ('jsonwebtoken')

module.exports = () => {
  return async function gzip(ctx, next) {
    const token = ctx.headers.Authorization
    if(token){
        try{
            jwt.verify('token',res.data)
        }
        catch{
            await next();
        }
    }
   
  };
};